using UnityEngine;
using System.Collections;

public class Useable : Interactive
{
	public override void RecalculateAreas()
	{
		base.RecalculateAreas();
		selectArea = Area.SelectArea(currentTile);

		currentTile.SetObjectOnTop(this);
	}
	
	public override void InteractiveClicked()
	{
		// The character will walk towards this object then call PickupObject
		InitiativeManager.Instance.current.PerformAction(this, "PickupObject", pathForInteraction);
	}
	
	public void PickupObject()
	{
		InitiativeManager.Instance.current.PickupObject(this);
	}

	protected override void FingerClick()
	{
		GameWidget.ShowWidget(this, WidgetID.Widget_Useable);
	}
}
